import axios from 'axios'
import { PROXY_API } from '../apiConfig'

class loginApi {
  // 模拟登录接口
  static login () {
    return axios.get(`${PROXY_API}/easymock/login`).then(res => res.data)
  }

  static getData (params) {
    return axios({
      url: `${PROXY_API}/easymock/getData`,
      method: 'get',
      params: params
    }).then(res => res.data)
  }
  // 添加  部门
  static reqDeptSave (params) {
    return axios.post(`${PROXY_API}/dept`, params).then(res => res.data)
  }
}

export default loginApi
